from django.conf.urls import url

from goods import views

urlpatterns = [

    # url(路径, 视图)
    url(r'^categories/(?P<category_id>\d+)/skus/$', views.SKUListView.as_view()),

]
from rest_framework.routers import DefaultRouter

router = DefaultRouter()
router.register('skus/search', views.SkUSearchViewSet, base_name='skus_search')
urlpatterns += router.urls
